<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>验票中心</title>
    <script src="/public/sp/js/mui.min.js"></script>
    <link href="/public/sp/css/mui.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/public/sp/css/style.css" />
    <link rel="stylesheet" href="/public/sp/css/iconfont.css" />
    <link rel="stylesheet" href="/public/sp/css/shoupiao.css" />
</head>
<body>
	<header class="mui-bar mui-bar-nav">
	    <h1 class="mui-title">验票中心</h1>
	</header>
	<div class="mui-content yp_content">
	    <div class="yp_top">
	    	<div class="yp_topbox">
	    		<div class="yp_bac"><img src="/public/sp/images/ticket.jpg"></div>
	    		<p class="num">NO.<em>{$ticket_info.sn}</em></p>
	    	</div>	    	
	    </div>
	    <ul class="yp_list">
	    	{foreach name="list" item="t" key="k"}
	    	<li data-id="{$t.id}" class="clearfix" id='divADBox'>
	    		<div class="left"><span>{$t.title}</span></div>
	    		<div class="right">
	    			<div class="ypnr">
	    				<div class="yp_info">
	    					<p>{$t.desc}
	    					</p>
	    					{if ($ticket_info['type']==2&&$t['title']=='入场券')||$ticket_info['type']==1}
	    							<p style="color:red;">末尾数字由工作人员核验,请勿自行点击</p>
	    					{/if}
	    				</div>
	    				{if $ticket_info['type']==2}
	    					{if $t['title']=='入场券'}
	    						<div class="yp_btn" data-item="{$t.id}" data-id=1 data-xf="{$t.belive}"><span class="yp_num {if $t.belive==0}none{/if}">{$t.belive}</span></div>
	    						{else}
	    						<div class="yp_btn" data-item="{$t.id}" data-id=1 data-xf="0"><span class="yp_num none">0</span></div>
	    					{/if}
	    				{else}
	    				<div class="yp_btn" data-item="{$t.id}" data-id=1 data-xf="{$t.belive}"><span class="yp_num {if $t.belive==0}none{/if}">{$t.belive}</span></div>
	    				{/if}
	    				
	    			</div>
	    		</div>
	    	</li>
	    	{/foreach}
	    </ul>
	    <div class="tipbox">
	    	<div class="bt">使用须知</div>
	    	<div class="nr">
	    		<p>1.本门票为复合型套票，每种作用使用次数以末尾数字显示为准。</p>
				<p>2.入场券功能单次限成人1位，可携带一名身高不超过1.3米儿童。</p>
				<p>3.入场时请提前打开门票验票页面（会员中心-我的购票-查看详情）。</p>
				<p>4.请自觉遵守现场秩序及规则，服从工作人员安排。</p>
				<p>5.凭本门票可参与“全民城市寻矿-郴州100+商业联盟”优惠活动，并可参与寻矿兑奖活动。</p>
				<p>6.美食券功能以矿博会现场美食节区域实际参加商家为准。</p>
				<p>7.交通券为可使用资质，出现较多人员同时使用且接送车辆运载能力不足情况下以排队顺序优先或车辆供应方所制定优先规则为准，接送时间范围为2018年5月18日至22日，每天9：00-17：30期间。</p>
				<p>8.第六届矿博会组委会及城市乐享平台拥有此门票最终解释权。</p>
				<p>9.年龄满70岁老人免票入场，行动能力不便者请在监护人陪同下入场。</p>
				<p>10.团体票请联系18873530101。</p>
				</div>
	    </div>
	</div>
	
</body>
<script src="/public/static/js/jquery.min.js"></script>
<script src="/public/static/layui/layui.all.js"></script>

<link rel="stylesheet " href="/public//static/layui/css/layui.css ">
<script src="/public/static/layui/layui.all.js "></script>
<script src="/public/static/js/help.js "></script>
<script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js "></script>
<script>
$(".yp_btn").click(function() {
	    var nums= $(this).attr('data-id');
	    var xf=$(this).attr('data-xf');
	    var item_id=$(this).attr('data-item');
	    if(xf==0){
	    	return;
	    }
	    if(nums<2){
	    	 $(this).attr('data-id',parseInt(nums)+1);
	    }
	    if(nums==2){
	    	layer.confirm('您确认使用？', {
				icon: 3
			},function(index) {
				$.ajax({
					type:"post",
					url:"/index/index/qr_xiaofei",
					data:{
						item_id:item_id,
						ticket_id:"{$ticket_info.id}"
					},
					success:function(data){
						layer.msg(data.msg, {
							time: 1000
						}, function() {
							location.reload();
						});
					}
				});
			}); 
	    }
	   
		
});  

</script>
<script>
	var uid = "{$Think.session.user_info.id}";
	var gurl = "{$url}";
	var _share_img = "images/fx.png";
	desc = "好友向您赠送了一张电子票,请尽快领取";
	var news = {
		"title": "好友向您赠送了一张电子票,请尽快领取",
		"desc": desc,
		"imgUrl": "https://"+document.domain+"/public/sp/images/syad.jpg",
		"link": gurl
	};
	share_set(news);
</script>
</html>
